ref class Limit
{
public:
	property Propo Profit_1_prop { Propo get(){ return profit_1_prop; } }
	property Propo Profit_2_prop { Propo get(){ return profit_2_prop; } }
	property Propo Profit_3_prop { Propo get(){ return profit_3_prop; } }
	property Propo Profit_4_prop { Propo get(){ return profit_4_prop; } }
	property float Profit_1_price { float get(){ return profit_1_price; } }
	property float Profit_2_price { float get(){ return profit_2_price; } }
	property float Profit_3_price { float get(){ return profit_3_price; } }
	property float Profit_4_price { float get(){ return profit_4_price; } }
	property float Profit_1_dest { float get(){ return profit_1_dest; } }
	property float Profit_2_dest { float get(){ return profit_2_dest; } }
	property float Profit_3_dest { float get(){ return profit_3_dest; } }
	property float Profit_4_dest { float get(){ return profit_4_dest; } }
	property int Profit_1_size { int get(){ return profit_1_size; } }
	property int Profit_2_size { int get(){ return profit_2_size; } }
	property int Profit_3_size { int get(){ return profit_3_size; } }
	property int Profit_4_size { int get(){ return profit_4_size; } }
	property int Profit_1_filled { int get(){ return profit_1_filled; } void set(int val){ profit_1_filled = val; } }
	property int Profit_2_filled { int get(){ return profit_2_filled; } void set(int val){ profit_2_filled = val; } }
	property int Profit_3_filled { int get(){ return profit_3_filled; } void set(int val){ profit_3_filled = val; } }
	property int Profit_4_filled { int get(){ return profit_4_filled; } void set(int val){ profit_4_filled = val; } }

	Limit(Trigger ^trg, Account ^acc);

	void UpdateProfits(bool withStop);
	void FindRoundedNumber_Long(interior_ptr<float> profit_price, int X);
	void FindRoundedNumber_Short(interior_ptr<float> profit_price, int X);
	void CalculateSizes();
	int RoundInt(int num);


private:
	Account ^account;
	Trigger ^trigger;

	Propo profit_1_prop;
	Propo profit_2_prop;
	Propo profit_3_prop;
	Propo profit_4_prop;
	float profit_1_price;
	float profit_2_price;
	float profit_3_price;
	float profit_4_price;
	float profit_1_dest;
	float profit_2_dest;
	float profit_3_dest;
	float profit_4_dest;
	int profit_1_size;
	int profit_2_size;
	int profit_3_size;
	int profit_4_size;
	int profit_1_filled;
	int profit_2_filled;
	int profit_3_filled;
	int profit_4_filled;

};